import request from '@/utils/request'

// 查询分享类别列表
export function listADictIndustryAffiliation(query) {
  return request({
    url: '/system/aDictIndustryAffiliation/list',
    method: 'get',
    params: query
  })
}

// 查询分享类别详细
export function getADictIndustryAffiliation(id) {
  return request({
    url: '/system/aDictIndustryAffiliation/' + id,
    method: 'get'
  })
}

// 新增分享类别
export function addADictIndustryAffiliation(data) {
  return request({
    url: '/system/aDictIndustryAffiliation',
    method: 'post',
    data: data
  })
}

// 修改分享类别
export function updateADictIndustryAffiliation(data) {
  return request({
    url: '/system/aDictIndustryAffiliation',
    method: 'put',
    data: data
  })
}

// 删除分享类别
export function delADictIndustryAffiliation(id) {
  return request({
    url: '/system/aDictIndustryAffiliation/' + id,
    method: 'delete'
  })
}

// 逻辑删除分享类别
export function logicDelADictIndustryAffiliation(id) {
  return request({
    url: '/system/aDictIndustryAffiliation/logicDel/' + id,
    method: 'delete'
  })
}
export function allAffiliation() {
  return request({
    url: '/system/aDictIndustryAffiliation/allAffiliation',
    method: 'get'
  })
}
